package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper//运行时，自动生成接口的实现类对象（代理对象），并将该容器对象交给ioc容器

public interface UserMapper {
    @Select("select id, name, age, gender, phone from user")
    List<User> list();

}
